home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / netz / amyboard / amiga / dmakefile < prev    next >
Makefile  |  1995-08-12  |  9KB  |  250 lines

  1. ###
  2. ### AmyBoard Makefile
  3. ###
  4. ### ------------------------------------------------------------------------
  5. ### This program is free software; you can redistribute it and/or modify
  6. ### it under the terms of the GNU General Public License as published by
  7. ### the Free Software Foundation; either version 2 of the License, or
  8. ### (at your option) any later version.
  9. ###
  10. ### This program is distributed in the hope that it will be useful,
  11. ### but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ### GNU General Public License for more details.
  14. ###
  15. ### You should have received a copy of the GNU General Public License
  16. ### along with this program; if not, write to the Free Software
  17. ### Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. ### ------------------------------------------------------------------------
  19. ###
  20.  
  21.  
  22. ############################################################################
  23. #
  24. #   Use this to compile with gcc and gmake
  25. #
  26. ############################################################################
  27. #CC         = gcc -noixemul
  28. #CFLAGS     = -I.. -IMUI:Developer/C/include -pedantic -Wall -g
  29. #DEFINES    = -D_amigados
  30. #LD         = gcc -noixemul
  31. #LDFLAGS    = -LMUI:Developer/C/GNU/Lib -g
  32. #LIBS       = -lm -lmui -lamiga
  33. #PARENT     = ..
  34. #INCFILE    = amyboard.h
  35.  
  36.  
  37. ############################################################################
  38. #
  39. #   Use this to compile with Dice and DMake
  40. #
  41. ############################################################################
  42. CC          = dcc
  43. CDEBUG      =
  44. CFLAGS      = -mi -mC -mD -IMUI:Developer/C/include -I/ -proto $(CDEBUG) \
  45.           -Hamyboard.m=amyboard.h
  46. LIBCFLAGS   = -Damigados -proto -IMUI:Developer/C/include
  47. DEFINES     = -D_amigados -DATTENTION
  48. LD          = dcc
  49. LDEBUG      =
  50. LDFLAGS     = $(LDEBUG) -LTools:Developer/lib -LMUI:Developer/C/DLib \
  51.           -mC -mD
  52. LIBS        = -lmempools -lm -lmui
  53. PARENT      =
  54. INCFILE     = amyboard.m
  55.  
  56.  
  57. ############################################################################
  58. #
  59. #   Paths; modify as you like
  60. #
  61. ############################################################################
  62. prefix = Fun:$PRODUCT-$VERSION.$PATCHLEVEL
  63. exec_prefix = ${prefix}
  64. bindir = $(exec_prefix)/bin
  65. mandir = $(prefix)/man/man6
  66. manext = .6
  67.  
  68.  
  69. ############################################################################
  70. #
  71. #   Other binaries
  72. #
  73. ############################################################################
  74. LEX = flex
  75. LEXFLAGS =
  76. CP = C:Copy
  77.  
  78.  
  79. ############################################################################
  80. ############################################################################
  81. ###
  82. ###  You should not need to change anything below.
  83. ###
  84. ############################################################################
  85. ############################################################################
  86. DISTDIR = AmyBoard-3.3.pl0
  87.  
  88. DISTDOC = $(PARENT)/ChangeLog.2 $(PARENT)/ChangeLog $(PARENT)/COPYING \
  89.     $(PARENT)/COPYRIGHT $(PARENT)/FAQ $(PARENT)/READ_ME $(PARENT)/ToDo \
  90.     doc/ReadMe.mui doc/ReadMe.mui.info AmyBoard.guide AmyBoard.guide.info
  91. DISTBIN = AmyBoard AmyBoard.info Install Install.info \
  92.  
  93. SRCDOC = doc/ReadMe.mui doc/ReadMe.mui.info
  94.  
  95. SRCAMIGA = AmyBoard.info Install Install.info args.c bitmaps.c childio.c \
  96.        gettimeofday.c muiclass.c parser.c time.c amyboard.c amyboard.h \
  97.        config.h DMakefile AmyBoard.texinfo \
  98.        AmyBoard.guide.info args.h amyedittags.c amygamelist.c
  99.  
  100. SRCCOMMON = $(PARENT)/ChangeLog.2 $(PARENT)/ChangeLog $(PARENT)/COPYING \
  101.     $(PARENT)/COPYRIGHT $(PARENT)/FAQ $(PARENT)/READ_ME $(PARENT)/ToDo \
  102.     $(PARENT)/INSTALL $(PARENT)/Makefile.in \
  103.     $(PARENT)/backend.c $(PARENT)/backend.h $(PARENT)/bitmaps.h \
  104.     $(PARENT)/childio.c $(PARENT)/childio.h $(PARENT)/cmail.in \
  105.     $(PARENT)/cmail.man $(PARENT)/comment.in $(PARENT)/common.h \
  106.     $(PARENT)/config.guess $(PARENT)/config.sub $(PARENT)/configure \
  107.     $(PARENT)/configure.in $(PARENT)/frontend.h $(PARENT)/ics-addresses \
  108.     $(PARENT)/ics-info $(PARENT)/install-sh $(PARENT)/kk13.pgn \
  109.     $(PARENT)/moves.c $(PARENT)/moves.h $(PARENT)/parser.c \
  110.     $(PARENT)/parser.h $(PARENT)/parser.l $(PARENT)/xboard.c \
  111.     $(PARENT)/xboard.h $(PARENT)/lists.h $(PARENT)/lists.c \
  112.     $(PARENT)/gamelist.c $(PARENT)/pgntags.c $(PARENT)/xboard.man \
  113.     $(PARENT)/Amiga.info $(PARENT)/xedittags.c $(PARENT)/xedittags.h \
  114.     $(PARENT)/xgamelist.c $(PARENT)/xgamelist.h $(PARENT)xboard.texi \
  115.     $(PARENT)/xboard.texinfo.in $(PARENT)/gpl.texinfo $(PARENT)/pxboard \
  116.     $(PARENT)/acconfig.h $(PARENT)/config.h.in
  117.  
  118.  
  119. ### Targets required by GNU standards #######################################
  120.  
  121. all: AmyBoard AmyBoard.guide
  122.  
  123. install:
  124.     $(CP) AmyBoard $(bindir)/AmyBoard
  125.  
  126. uninstall:
  127.     C:Delete $(bindir)/AmyBoard QUIET
  128.  
  129. clean:
  130.     C:Delete AmyBoard #?.o #?.m #?.doc lex.yy.c QUIET
  131.  
  132. distclean: clean
  133.  
  134. mostlyclean: clean
  135.  
  136. realclean: distclean
  137.     C:Delete parser.c QUIET
  138.  
  139. TAGS:
  140.     etags #?.c #?.h
  141.  
  142. info:   AmyBoard.info
  143.  
  144. dvi:    AmyBoard.dvi
  145.  
  146. dist: distbin distsrc
  147.  
  148. distbin: all
  149.     C:Delete t:$(DISTDIR)#? ALL QUIET
  150.     C:MakeDir t:$(DISTDIR)
  151.     C:MakeDir t:$(DISTDIR)/doc
  152.     $(CP) $(DISTBIN) t:$(DISTDIR)
  153.     $(CP) $(DISTDOC) t:$(DISTDIR)/doc
  154.     $(CP) $(PARENT)/Amiga.info t:$(DISTDIR).info
  155.     lha a -r t:$(DISTDIR)bin.lha t:$(DISTDIR) t:$(DISTDIR).info
  156.     C:Delete t:$(DISTDIR) t:$(DISTDIR).info ALL QUIET
  157.  
  158. distsrc:
  159.     C:MakeDir t:$(DISTDIR)
  160.     C:MakeDir t:$(DISTDIR)/Amiga
  161.     C:MakeDir t:$(DISTDIR)/Amiga/doc
  162.     $(CP) $(SRCCOMMON) t:$(DISTDIR)
  163.     $(CP) $(PARENT)/bitmaps t:$(DISTDIR)/bitmaps ALL
  164.     $(CP) $(PARENT)/bitmaps.xchess t:$(DISTDIR)/bitmaps.xchess ALL
  165.     $(CP) $(SRCAMIGA) t:$(DISTDIR)/Amiga
  166.     $(CP) bitmaps t:$(DISTDIR)/Amiga/bitmaps ALL
  167.     $(CP) $(SRCDOC) t:$(DISTDIR)/Amiga/doc
  168.     lha a -r t:$(DISTDIR)src.lha t:$(DISTDIR)/#?
  169.     C:Protect t:$(DISTDIR) +wd ALL QUIET
  170.     C:Delete t:$(DISTDIR) ALL QUIET
  171.  
  172. check: all
  173.  
  174. ### End targets required by GNU standards ###################################
  175.  
  176. AmyBoard: parser.o amyboard.o backend.o moves.o childio.o muiclass.o time.o \
  177.     args.o lists.o gamelist.o pgntags.o bitmaps.o gettimeofday.o \
  178.     amyedittags.o amygamelist.o
  179.     $(LD) -o AmyBoard $(LDFLAGS) \
  180.         parser.o amyboard.o backend.o moves.o childio.o muiclass.o \
  181.         time.o args.o lists.o gamelist.o pgntags.o bitmaps.o \
  182.         gettimeofday.o amyedittags.o amygamelist.o $(LIBS)
  183.  
  184. parser.c: $(PARENT)/parser.l
  185.     $(LEX) -t ../parser.l >parser.c
  186.  
  187. amyboard.o: amyboard.c $(INCFILE) $(PARENT)/common.h $(PARENT)/frontend.h \
  188.       $(PARENT)/backend.h $(PARENT)/bitmaps.h
  189.     $(CC) $(DEFINES) $(CFLAGS) -c amyboard.c
  190.  
  191. parser.o: parser.c $(PARENT)/common.h $(PARENT)/backend.h \
  192.       $(PARENT)/parser.h $(PARENT)/moves.h
  193.     $(CC) $(DEFINES) $(CFLAGS) -c parser.c
  194.  
  195. backend.o: $(PARENT)/backend.c $(PARENT)/common.h $(PARENT)/frontend.h \
  196.        $(PARENT)/backend.h $(PARENT)/parser.h $(PARENT)/moves.h
  197.     $(CC) $(DEFINES) $(CFLAGS) -c $(PARENT)/backend.c -o backend.o
  198.  
  199. moves.o: $(PARENT)/moves.c $(PARENT)/common.h $(PARENT)/backend.h \
  200.      $(PARENT)/moves.h $(PARENT)/parser.h
  201.     $(CC) $(DEFINES) $(CFLAGS) -c $(PARENT)/moves.c -o moves.o
  202.  
  203. childio.o: childio.c $(INCFILE) $(PARENT)/common.h
  204.     $(CC) $(DEFINES) $(CFLAGS) -c childio.c
  205.  
  206. muiclass.o: muiclass.c $(INCFILE) $(PARENT)/common.h
  207.     $(CC) $(DEFINES) $(CFLAGS) -c muiclass.c
  208.  
  209. time.o: time.c $(INCFILE) $(PARENT)/common.h
  210.     $(CC) $(DEFINES) $(CFLAGS) -c time.c
  211.  
  212. args.o: args.c $(INCFILE)
  213.     $(CC) $(DEFINES) $(CFLAGS) -c args.c
  214.  
  215. lists.o: $(PARENT)/lists.c $(INCFILE) $(PARENT)/lists.h
  216.     $(CC) $(DEFINES) $(CFLAGS) -c $(PARENT)/lists.c -o lists.o
  217.  
  218. gamelist.o: $(PARENT)/gamelist.c $(INCFILE) $(PARENT)/lists.h
  219.     $(CC) $(DEFINES) $(CFLAGS) -c $(PARENT)/gamelist.c -o gamelist.o
  220.  
  221. pgntags.o: $(PARENT)/pgntags.c $(INCFILE)
  222.     $(CC) $(DEFINES) $(CFLAGS) -c $(PARENT)/pgntags.c -o pgntags.o
  223.  
  224. bitmaps.o: bitmaps.c
  225.     $(CC) $(DEFINES) $(CFLAGS) -c bitmaps.c
  226.  
  227. gettimeofday.o: gettimeofday.c
  228.     $(CC) $(DEFINES) $(CFLAGS) -c gettimeofday.c
  229.  
  230. amyedittags.o: amyedittags.c
  231.     $(CC) $(DEFINES) $(CFLAGS) -c amyedittags.c
  232.  
  233. amygamelist.o: amygamelist.c
  234.     $(CC) $(DEFINES) $(CFLAGS) -c amygamelist.c
  235.  
  236. amyboard.m: amyboard.h $(PARENT)/common.h $(PARENT)/frontend.h \
  237.       $(PARENT)/backend.h $(PARENT)/lists.h config.h
  238.     C:Delete amyboard.m quiet
  239.  
  240. AmyBoard.guide: AmyBoard.texinfo /xboard.texi /gpl.texinfo
  241.     makeinfo -I / --amiga-39 --output AmyBoard.guide AmyBoard.texinfo
  242.  
  243. AmyBoard.info: AmyBoard.texinfo /xboard.texi /gpl.texinfo
  244.     makeinfo -I / --output AmyBoard.info AmyBoard.texinfo
  245.  
  246. AmyBoard.dvi: AmyBoard.texinfo /xboard.texi /gpl.texinfo
  247.     tex AmyBoard.texinfo
  248.     texindex AmyBoard.cp
  249.     tex AmyBoard.texinfo
  250.